# include <stdio.h>
# define N 10
int main()
{
	int x,y,i;
	int a[N+1]={10,20,30,40,50,60,70,80,90,100};
	scanf("%d",&x);
	if (x>100)
	a[N]=x;
	else{
	for (i=0;i<N;i++)
	{
		if (x<=a[i])
		{
			y=i;
			break;
		}
		
	}
	for (i=N+1;i>=y;i--)
	{
		a[i+1]=a[i] ; 
	}
	a[y]=x;}
	for (i=0;i<N+1;i++)
	printf("%d  ",a[i]);
	
	return 0;
}
